package com.example.mydemo1.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
* <p>
* 用户表，注意po不用于页面显示，对应数据库的表，与表中的字段一一对应
* </p>
*
* @createTime: 2023/09/16 14:29:44
*/
@TableName("t_sys_user")
public class SysUser extends Model<SysUser> {

    /**
    * 主键id
    */
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
    * 登录账号
    */
    private String username;

    /**
    * 真实姓名
    */
    private String realname;

    /**
    * 密码
    */
    private String password;

    /**
    * md5密码盐
    */
    private String salt;

    /**
    * 头像
    */
    private String avatar;

    /**
    * 生日
    */
    private LocalDateTime birthday;

    /**
    * 性别(0-默认未知,1-男,2-女)
    */
    private Boolean sex;

    /**
    * 电子邮件
    */
    private String email;

    /**
    * 电话
    */
    private String phone;

    /**
    * 机构编码
    */
    private String orgCode;

    /**
    * 性别(1-正常,2-冻结)
    */
    private Boolean status;

    /**
    * 删除状态(0-正常,1-已删除)
    */
    private Boolean delFlag;

    /**
    * 第三方登录的唯一标识
    */
    private String thirdId;

    /**
    * 第三方类型
    */
    private String thirdType;

    /**
    * 同步工作流引擎(1-同步,0-不同步)
    */
    private Boolean activitiSync;

    /**
    * 工号，唯一键
    */
    private String workNo;

    /**
    * 职务，关联职务表
    */
    private String post;

    /**
    * 座机号
    */
    private String telephone;

    /**
    * 创建人
    */
    private String createBy;

    /**
    * 创建时间
    */
    private LocalDateTime createTime;

    /**
    * 更新人
    */
    private String updateBy;

    /**
    * 更新时间
    */
    private LocalDateTime updateTime;

    /**
    * 身份（1普通成员 2上级）
    */
    private Boolean userIdentity;

    /**
    * 负责部门
    */
    private String departIds;

    /**
    * 多租户标识
    */
    private String relTenantIds;

    /**
    * 设备ID
    */
    private String clientId;

    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return realname;
    }
    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }
    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getAvatar() {
        return avatar;
    }
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }
    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public Boolean getSex() {
        return sex;
    }
    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOrgCode() {
        return orgCode;
    }
    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public Boolean getStatus() {
        return status;
    }
    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }
    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    public String getThirdId() {
        return thirdId;
    }
    public void setThirdId(String thirdId) {
        this.thirdId = thirdId;
    }

    public String getThirdType() {
        return thirdType;
    }
    public void setThirdType(String thirdType) {
        this.thirdType = thirdType;
    }

    public Boolean getActivitiSync() {
        return activitiSync;
    }
    public void setActivitiSync(Boolean activitiSync) {
        this.activitiSync = activitiSync;
    }

    public String getWorkNo() {
        return workNo;
    }
    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }

    public String getPost() {
        return post;
    }
    public void setPost(String post) {
        this.post = post;
    }

    public String getTelephone() {
        return telephone;
    }
    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getCreateBy() {
        return createBy;
    }
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getUserIdentity() {
        return userIdentity;
    }
    public void setUserIdentity(Boolean userIdentity) {
        this.userIdentity = userIdentity;
    }

    public String getDepartIds() {
        return departIds;
    }
    public void setDepartIds(String departIds) {
        this.departIds = departIds;
    }

    public String getRelTenantIds() {
        return relTenantIds;
    }
    public void setRelTenantIds(String relTenantIds) {
        this.relTenantIds = relTenantIds;
    }

    public String getClientId() {
        return clientId;
    }
    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    @Override
    public String toString() {
        return "SysUser{" +
            "id=" + id +
            ", username=" + username +
            ", realname=" + realname +
            ", password=" + password +
            ", salt=" + salt +
            ", avatar=" + avatar +
            ", birthday=" + birthday +
            ", sex=" + sex +
            ", email=" + email +
            ", phone=" + phone +
            ", orgCode=" + orgCode +
            ", status=" + status +
            ", delFlag=" + delFlag +
            ", thirdId=" + thirdId +
            ", thirdType=" + thirdType +
            ", activitiSync=" + activitiSync +
            ", workNo=" + workNo +
            ", post=" + post +
            ", telephone=" + telephone +
            ", createBy=" + createBy +
            ", createTime=" + createTime +
            ", updateBy=" + updateBy +
            ", updateTime=" + updateTime +
            ", userIdentity=" + userIdentity +
            ", departIds=" + departIds +
            ", relTenantIds=" + relTenantIds +
            ", clientId=" + clientId +
            "}";
    }
}
